package com.ckr.mapper;

import com.ckr.pojo.Teacher;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author Shadowckr
 * @create 2021-11-13 12:39
 */
public interface TeacherMapper {
    // 测试
    @Select("select * from teacher where id = #{tid}")
    Teacher getTeacherById(@Param("tid") int id);

    // 获取老师的信息
    Teacher getTeacherInfo(@Param("tid") int id);
}
